<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

// Route::get('/', function()
// {
// 	return View::make('hello');
// });
Route::get('/', 'HomeController@login');
Route::get('register', array('as' => 'register', 'uses' => 'HomeController@register'));
Route::get('login', array('as' => 'login', 'uses' => 'HomeController@login'));



Route::post('login', array('before' => 'CSRF', 'uses' => 'HomeController@authentication'));
Route::post('register', array('before' => 'CSRF', 'uses' => 'HomeController@registration'));